<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <!--<h2>{$info['id']?'编辑':'新增'}轮播图</h2>-->
        <h2>新增属性</h2>
    </div>
    <form action="{:U('Goodsatval/upd')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">属性值名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="val_name" value="{$info.val_name}">
            </div>
        </div>


        <div class="form-item">
            <input type="hidden"  name="id" value="{$info.id}">
            <input type="hidden"  name="aid" value="{$info.aid}">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
//        Think.setValue("pid", {$info.pid|default = 0});
        Think.setValue("type_id", {$info.type_id|default = 0});
        //导航高亮
        $('.side-sub-menu').find('a[href="{:U('index')}"]').closest('li').addClass('current');
    </script>
</block>
